package com.example.demo.service;

import com.example.demo.common.domain.CompensatoryLeaveRecord;
import com.example.demo.common.domain.Leave_Record;
import com.example.demo.common.domain.OutRecord;

import java.util.Date;
import java.util.List;

public interface MangerAble {
    //请假审批
    public List<Leave_Record> getLeaveRecordDuring(Date start, Date end);

    public List<Leave_Record> getUnexpiredLeaveRecord(Date start);

    public void agreeLeave(Integer Lid);//单个同意

    public void refuseLeave(Integer Lid);//单个拒绝

    public void agreeLeaves(List<Integer> Lids);//批量同意

    public void refuseLeaves(List<Integer> Lids);//批量拒绝
    //外出审批
    public List<OutRecord> getOutRecordDuring(Date start, Date end);

    public List<OutRecord> getUnexpiredOutRecord(Date start);

    public void agreeOut(Integer Lid);//单个同意

    public void refuseOut(Integer Lid);//单个拒绝

    public void agreeOuts(List<Integer> Lids);//批量同意

    public void refuseOuts(List<Integer> Lids);//批量拒绝
    //调休审批

    public List<CompensatoryLeaveRecord> getCompensatoryLeaveRecordDuring(Date start, Date end);

    public List<CompensatoryLeaveRecord> getUnexpiredCompensatoryLeaveRecord(Date start);

    public void agreeCompensatoryLeave(Integer Lid);//单个同意

    public void refuseCompensatoryLeave(Integer Lid);//单个拒绝

    public void agreeCompensatoryLeaves(List<Integer> Lids);//批量同意

    public void refuseCompensatoryLeaves(List<Integer> Lids);//批量拒绝
}
